PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawString Method / drawString(String,PDFStringAppearanceOptions,PDFStringLayoutOptions,PDFStructureElement) Method
String to draw.
Options that determine the string visual appearance.
Options that determine the text layout.
The structure element that is associated with this piece of content.
In This Topic
    drawString(String,PDFStringAppearanceOptions,PDFStringLayoutOptions,PDFStructureElement) Method
    In This Topic
    Draws the specified text string with the specified appearance and layout options.
    Syntax

    Parameters

    s
    String to draw.
    stringAppearanceOptions
    Options that determine the string visual appearance.
    stringLayoutOptions
    Options that determine the text layout.
    structureElement
    The structure element that is associated with this piece of content.
    Exceptions
    ExceptionDescription
    When s is null or stringAppearanceOptions is null or stringLayoutOptions is null.
    See Also